/**
 * Created by lenovo on 2016/3/17.
 */
package cc.openhome;
import java.util.Scanner;

public class StringSum {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        long sum=0;
        long number=0;
        do{
            System.out.printf("输入数字：");
            number=Long.parseLong(scanner.nextLine());
            sum+=number;
        }while(number!=0);
        System.out.println("总和："+sum);
    }
}
